<template>
  <div class="good-list banxin flex">
    <GoodListItem
      v-for="item in arr"
      :key="item.id"
      :data="item"
    ></GoodListItem>
  </div>
</template>
 
<script>
import GoodListItem from "./GoodListItem.vue";
export default {
  props: ["arr"],
  data() {
    return {};
  },
  components: {
    GoodListItem,
  },
};
</script>
 
<style lang = "less" scoped>
.good-list {
  /* justify-content: space-between; */
  flex-wrap: wrap;

  .good-list-item {
    margin-right: 20px;
    margin-bottom: 20px;
    &:nth-child(4n) {
      margin-right: 0;
    }
  }
}
</style>